<template>
	<!-- 我是优惠券的已过期组件 -->
	<view class="Expired">
		<view class="main">
			<view class="main-item" v-for="item in arr" :key="item.id">
				<view class="couponBack">
					<view class="centent flexjcsb">
						<view class="threshold">
							<view class=""> ￥<text>{{ item.money }}</text> </view>
							<view class="preferentialThreshold">
								<text>满{{ item.at_least }}可用</text>
							</view>
						</view>
						<view class="certificate">
							<view class="certificate-title"> {{ item.platformcoupon_name }} </view>
							<view class="certificate-date">
								<text>{{ item.fetch_time | formatTime }}</text>
								<text class="wavyLine">~</text>
								<text>{{ item.end_time | formatTime }}</text>
							</view>
						</view>

					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	props: ["arr"],
	data() {
		return {};
	},
};
</script>

<style lang="less" scoped>
.Expired {
	.main {
		.main-item {
			background: #fff;
			margin-bottom: 20rpx;
			padding: 30rpx;

			.centent {
				width: 100%;
				height: 100%;

				// 门槛
				.threshold {
					width: 250rpx;
					text-align: center;
					font-size: 27rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #836220;

					view:first-child {
						text {
							font-size: 67rpx;
							font-family: PingFang SC;
							font-weight: 400;
							color: #836220;
						}
					}

					view:last-child {
						color: #f14500;
						text-align: center;
					}

					.preferentialThreshold {
						color: #8a6928 !important;
					}
				}

				// 指定
				.certificate {
					.certificate-title {
						font-size: 32rpx;
						font-family: PingFang SC;
						font-weight: 400;
						color: #000000;
					}

					.certificate-date {
						font-size: 24rpx;
						font-family: PingFang SC;
						font-weight: 400;
						color: #836220;

						text {
							padding: 0 6rpx;
						}
					}
				}

				// 状态
				.centent-status {
					width: 100rpx;
					font-size: 26rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #ffffff;
					// line-height: 32rpx;
					text-shadow: 0rpx 1rpx 1rpx rgba(182, 140, 255, 0.5);
					padding-left: 20rpx;
				}
			}
		}
	}
}
</style>